package src.client;

import java.util.*;
import java.util.regex.*;

public class Utilities {
	public static List<String> SplitByRegex(String input,String regex){
        List<String> returnedList=new ArrayList<String>();
        Pattern pattern=Pattern.compile(regex);
        String items[]=pattern.split(input.toLowerCase());
        for(int i=0;i<items.length;i++){
            if(!items[i].equals("")){
                returnedList.add(items[i].trim());
            }
        }
        return returnedList;
    }
}
